<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript">
	var unitId = "${material.unitId}";
</script>

<link rel="stylesheet" href="<%=basePath%>css/layui/css/layui.css">
<script type="text/javascript" src="<%=basePath%>js/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/BaseUtile.js"></script>
<script type="text/javascript" src="<%=basePath%>js/vue.min.js"></script>
<script type="text/javascript"
	src="<%=basePath%>js/editMaterial/editMaterial.js"></script>

<title>Insert title here</title>
</head>


<body style="padding: 5%">
	<div class="layui-form">
		<input id="foodId" value="${material.materialId}"
			style="display: none" />
		<div class="layui-form-item">
			<label class="layui-form-label">原料名称:</label>
			<div class="layui-input-block">
				<input id="inputMaterialName" value="${material.materialName}"
					type="text" required lay-verify="required" placeholder="请输入原料名称"
					autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">单位:</label>
			<div class="layui-input-block">
				<select id="inputUnitId" v-model="selected">
					<option v-for="option in options" v-bind:value="option.unitId">{{option.unitName}}</option>
				</select>
			</div>
		</div>

	<div class="layui-form-item">
			<label class="layui-form-label">参考价格:</label>
			<div class="layui-input-block">
				<input id="inputMaterialPrice" value="${material.materialPrice}"
					type="text"  placeholder="请输入参考价格"
					 class="layui-input">
			</div>
		</div>
	</div>

	<script type="text/javascript" src="<%=basePath%>css/layui/layui.js"></script>
	<script>
		layui.use('form', function() {

		});
	</script>


</body>
</html>